/*  bomb derived class for ND++ minesweeeper game
Programmer:  Prof. Scott

This file contains the implementations for the derived class member functions for a bomb in our game

Please refer to bomb.h for details about this simple class.  The only function that differs for a bomb is
the display function that is called polymorphically, and we add some debug information to help with the
implementation.

To turn on debugging, add "#include DEBUG" before "using namespace std"

This also could display something different if the game is over, say by including a parameter
to the function.  We'll leave that for future work/updates.

*/

#include <iostream>
#include "bomb.h"

Bomb::Bomb () : Cell (1) {}   // default constructor that activates this bomb

void Bomb::display () {

  if (checkIfFlagged() == 1)   
    std::cout << "@ ";    // cell flagged; show it as such
  else
#ifdef DEBUG
    std::cout << "! ";    // display bomb location to the programmer
#else
  std::cout << "= ";    // display the same look as a non-bomb for gameplay
#endif

}
